import React,{Component} from 'react';
import {View,Text} from 'react-native';

export default class Demo15Component extends Component{
  render(){
    return <View>
      <Text>{'\n'}</Text>
      <View style={{backgroundColor:'#eeeeee',
      height:60,
      alignItems:'center'}}>
        <Text>水平居中</Text>
      </View>
      <View style={{backgroundColor:'#ff0000',
      height:60,
      justifyContent:'center'}}>
        <Text>垂直居中</Text>
      </View>
      <View style={{backgroundColor:'#eeeeee',
      height:60,
      alignItems:'center',
      justifyContent:'center'}}>
        <Text>居中</Text>
      </View>
      
    </View>
  }
}